const colors = require('colors')
const express = require('express')
const app = express()

const fs = require('fs')

let server = app.listen(30010, function () {
  let host = '127.0.0.1'
  let port = server.address().port
  console.log(`Your App is running at http://${host}:${port}`.green)
})

app.get('/', function (req, res) {
  // res.send('Hello World!')

  fs.readFile('./accessories.html', 'utf-8', (err, data) => {
    // console.log(data)
    let html = data
    res.send(data)
  })
})
